<?
/*----------------------------------------------------------------------
          (C) Bobtail-Bear 2006 	小飞熊新一代下载系统
          	代码编写：小飞熊	版权所有：小飞熊[L.F.Bear]
				官方网站/技术支持：http://www.lfbear.cn
------------------------------------------------------------------------
          (C) Bobtail-Bear 2006 	L.F.Bear's New Download Sysytem
          	Powered by L.F.Bear  Copyright L.F.Bear's Home(R)
               Official Web/Support：http://www.lfbear.cn
-----------------------------------------------------------------------*/

//本页脚本功能：装载文字编辑器

function show_editor($editor_name,$editor_value,$width="100%",$height="240")        
		{
		$type=1;
		//文字编辑器类型：1为FCKeditor（可见即可得）编辑器，0为普通文本框
		//require("../include/config.inc.php");
		if($type=="1"){
        include("FCKeditor/fckeditor.php") ;
        $sBasePath = "FCKeditor/";
        $oFCKeditor = new FCKeditor($editor_name) ;
        $oFCKeditor->BasePath = $sBasePath ;
        $oFCKeditor->Value = $editor_value ;
        $oFCKeditor->Width  = $width ;
        $oFCKeditor->Height = $height ;
        return $oFCKeditor->CreateHtml();}
        else //自定义文字编辑器
        {$editer="<textarea name=\"$editor_name\" cols=\"80\" rows=\"7\">$editor_value</textarea>";
        return $editer;}
        }
?>